<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%> 
<%@ page import="java.util.Vector" %>
<%@ page import="obj.Oeuvre" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Resultat de la recherche</title>
</head>
<body>
	<jsp:include page="imgBody.jsp" flush="true">
		<jsp:param name="image_fond" value="affichageImg"  />
	</jsp:include>
		<jsp:include page="recherche.jsp" flush="true">
		<jsp:param name="formRecherche" value="rechercher"  />
	</jsp:include>
<%
Vector<Oeuvre> listeOeuvre = (Vector<Oeuvre>) request.getAttribute("LISTE_OEUVRE");
%>
<table id="table_four" align="center">
	<col width="20">
	<col width="40">
	<col width="40">
	<col width="40">
	<col width="30">
	<tr>
		<th>ID</th>
		<th>GENRE</th>
		<th>TYPE</th>
		<th>SUPPORT</th>
		<th>ACTION</th>
	</tr>
	
	<%
	for (int i=0; i<listeOeuvre.size();i++){
	%><tr><form action="recherche" method="post">
	<td id="td4"><input id="ipt" type="text" name="id_video" value="<%= listeOeuvre.get(i).getId() %>" readOnly/></td>
	<td id="td3"><%= listeOeuvre.get(i).getGr().getLib() %></td>
	<td id="td4"><%= listeOeuvre.get(i).getClass().getSimpleName() %></td>
	<td id="td3"><%= listeOeuvre.get(i).getSp().getLib() %></td>
	<td><input type="submit" name="ACTION" value="modifier"/></td>
	</form></tr>
	<%}%>
	
</table>
<jsp:include page="deconnexion.jsp" flush="true">
	<jsp:param name="deconnexion" value="seDeconnecter"  />
</jsp:include>
</body>
</html>